package com.android.bookgarden.bean;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;
import java.util.Objects;

/**
 * Created by zouqh on 2017/12/18.
 */
@Table(name = "BtItem")
public class BtItem implements Serializable {
    @Column(name  = "id", isId = true,autoGen = false)
    private int id;
    @Column(name  = "name")
    private String name;
    @Column(name  = "isShow")
    private boolean isShow = true;
    @Column(name  = "phone")
    private String phone;
    public BtItem(){

    }
    public BtItem(int url, String title){
        this.id = url;
        this.name=title;
    }

    public BtItem(String url, String title){
        this.name=title;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isShow() {
        return isShow;
    }

    public void setShow(boolean show) {
        isShow = show;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "BtItem{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", isShow=" + isShow +
                ", phone='" + phone + '\'' +
                '}';
    }
}
